package com.mspbots.attendance.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mspbots.attendance.controller.TenantAttendanceController;
import com.mspbots.attendance.model.LogResult;
import com.mspbots.attendance.model.TenantAttendance;
import com.mspbots.attendance.model.Users;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface TenantAttendanceService extends IService<TenantAttendance> {
    LogResult log(TenantAttendance tenantAttendance);

    List<TenantAttendance> findCurrentDayLog(TenantAttendance tenantAttendance);

    List<String> findTeam(TenantAttendance tenantAttendance);

    IPage<TenantAttendance> findByParam(Page<TenantAttendance> page, TenantAttendanceController.TenantAttendanceParams params);

    Object findExecl(TenantAttendanceController.TenantAttendanceParams params, HttpServletResponse response);

    List<TenantAttendance> findTenantLog(TenantAttendanceController.TenantAttendanceParams tenantAttendanceParams);

    TenantAttendance findInLog(TenantAttendance tenantAttendance);

    List<Users> findTenantUser(TenantAttendanceController.TenantAttendanceParams params);

    Integer commandRegix(String regesStr);


    TenantAttendance findAction(TenantAttendanceController.TenantAttendanceParams params);

    List<TenantAttendance> findLastIn(long tenantId);

    List<TenantAttendance> findSubAction(long tenantId);
}
